package com.gcc.controller;


import com.gcc.common.Result;
import com.gcc.pojo.StudentVitality;
import com.gcc.pojo.StudyAbility;
import com.gcc.service.StudentVitalityService;
import com.gcc.service.StudyAbilityService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author gcc
 * @since 2023-01-03
 */
@RestController
@RequestMapping("/GetAbilityByUserId")
public class StudyAbilityController {
    @Resource
    private StudyAbilityService sas;
    @GetMapping("/{user_id}/{course_id}")
    public Result<List<StudyAbility>> getAbilityByUserId(@PathVariable String user_id, @PathVariable String course_id){
        return Result.success(sas.getAbilityByUserId(user_id,course_id));
    }
}

